home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.4 Applications 1997 August / SGI IRIX 6.4 Applications 1997 August.iso / dist / demos.idb / usr / demos / General_Demos / doom / threex.z / threex
Encoding:
Text File  |  1997-06-26  |  1.8 KB  |  52 lines

  1. #!/bin/csh -f
  2. #Author: G. Helms
  3. #Date:   12/6/94
  4. #Updated: June 24 1996: Diana Starr (new directory paths)
  5. #
  6. # Misc:  This is a total and complete hack.  Its sole reason for 
  7. # existance is to make life easier to first-time DOOM players, and
  8. # especially those using the iconic interface.  There are complexities
  9. # involved with the icons and the way paths are handled that I attempted
  10. # to address here.  If you have questions about DOOM, you should look
  11. # at the man page for sgixdoom, or read the README file in 
  12. # /usr/demos/General_Demos/doom directory.
  13.  
  14. # If the user hasn't set DOOMWADDIR, assume this is their first
  15. # time playing DOOM.  This means they don't know about ~home/.doomrc,
  16. # they don't know about the sndserver stuff, and they don't know about
  17. # registered WAD files.  So, set DOOMWADDIR to the commercial version,
  18. # but leave them in their current directory so they can save games if
  19. # they have write permission.
  20. #
  21. # Experienced users: DOOM only checks your current directory, ~home/.doomrc
  22. # file, and DOOMWADDIR for the sndserver.  DOOM only saves games to your
  23. # current directory, regardless of what DOOMWADDIR is set to.
  24. # You can also explicitly list the path to sndserver in your 
  25. #  ~home/.doomrc file by replacing "sndserver" with 
  26. #  "/usr/demos/General_Demos/doom/sndserver" in order to pick up sounds.  
  27. #
  28.  
  29.  
  30. if ( $?DOOMWADDIR == 0 ) then
  31.   setenv DOOMWADDIR /usr/demos/General_Demos/doom
  32. endif
  33.  
  34. #
  35. # If we run as the user nobody (as from the web demo interface) 
  36. # $DISPLAY is not set, which confuses DOOM, so set it here.
  37. #
  38.  
  39. setenv DISPLAY localhost:0.0
  40. setenv HOME /tmp
  41.  
  42.  
  43. # Now start up the REAL binary, and hand down any
  44. # options that may be wanted ($*). If nothing
  45. # specified, use size -2
  46.  
  47.  
  48. cd /usr/demos/General_Demos/doom
  49. /usr/demos/General_Demos/doom/sgixdoom -3 $*
  50.  
  51.  
  52.